package springBoot_dzfpxt.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.stereotype.Service;

import springBoot_dzfpxt.entity.Boos;
import springBoot_dzfpxt.entity.QuanxianTable;
import springBoot_dzfpxt.rpository.BoosRepository;

@Service
public class BoosService {

	@Autowired
	private BoosRepository boosDAO;

	public List<Boos> findBySuperboosId(Integer id) {
		return boosDAO.findBySuperboosId(id);
	}

	public List<Boos> findAll() {
		// TODO Auto-generated method stub
		return boosDAO.findAll();
	}

	public Page<Boos> findAll(Pageable pageable) {
		// TODO Auto-generated method stub
		return boosDAO.findAll(pageable);
	}

	public Page<Boos> findAll(Specification buildSpec, Pageable pageable) {
		// TODO Auto-generated method stub
		return boosDAO.findAll(buildSpec,pageable);
	}

}
